package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 主数据管理对象 sf_dg_main_data
 * 
 * @author ruoyi
 * @date 2024-05-29
 */
public class SfDgMainData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 数据类型 */
    @Excel(name = "数据类型")
    private String dataType;

    /** 数据描述 */
    @Excel(name = "数据描述")
    private String dataName;

    /** 属性 */
    @Excel(name = "属性")
    private String property;

    /** 值域 */
    @Excel(name = "值域")
    private String eara;

    /** 规则 */
    @Excel(name = "规则")
    private String rule;

    /** 录入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "录入时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDataType(String dataType) 
    {
        this.dataType = dataType;
    }

    public String getDataType() 
    {
        return dataType;
    }
    public void setDataName(String dataName) 
    {
        this.dataName = dataName;
    }

    public String getDataName() 
    {
        return dataName;
    }
    public void setProperty(String property) 
    {
        this.property = property;
    }

    public String getProperty() 
    {
        return property;
    }
    public void setEara(String eara) 
    {
        this.eara = eara;
    }

    public String getEara() 
    {
        return eara;
    }
    public void setRule(String rule) 
    {
        this.rule = rule;
    }

    public String getRule() 
    {
        return rule;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dataType", getDataType())
            .append("dataName", getDataName())
            .append("property", getProperty())
            .append("eara", getEara())
            .append("rule", getRule())
            .append("createDate", getCreateDate())
            .toString();
    }
}
